using System;

namespace Be.Timvw.Framework.Tests.EventHelper
{
    public class MyClass
    {
        private string name;

        public string Name
        {
            get { return this.name; }
            set
            {
                if(value != this.name)
                {
                    this.name = value;
                    Framework.EventHelper.Raise(this.NameChanged, this, new ItemEventArgs<string>(this.name));
                }
            }
        }

        public event EventHandler<ItemEventArgs<string>> NameChanged;
    }
}